package com.bwie.remote;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.remote.factory.RemoteSystemServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @className: RemoteSystemService
 * @Description: TODO
 * @version: v1.８.0
 * @author: 李明
 * @date: 2025/11/10 10:02
 */
@FeignClient(value = "bwie-system", fallbackFactory = RemoteSystemServiceFallback.class)
public interface RemoteSystemService {

    /**
     * 通过账号获取用户信息
     */
    @GetMapping("user/getUserInfo/{account}")
    public Result<User> getUserInfo(@PathVariable("account") String account);

}
